package com.hot12345.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.hot12345.database.BaseDaoImpl;
import com.hot12345.entity.Item;

public class ItemDaoImpl extends BaseDaoImpl<Item> {

	private final static ItemDaoImpl instance = new ItemDaoImpl();
	public final static String RDS = "defaultRDs";
	public final static String WDS = "defaultWDs";
	
	private ItemDaoImpl(){}
	
	public static ItemDaoImpl getInstance(){
		return instance;
	}
	/**
	 * 查询所有状态为1的数据
	 *	
	 * @return
	 * @author wuzongbao
	 * @date 2013-5-13 下午07:47:12
	 * @version V1.0
	 * @throws Exception 
	 */
	public List<Item> getItemAll() throws Exception{
		
		Map<String,Object> params = new HashMap<String,Object>();
		params.put("state", 1);
		
		return findByParams(params);
	}
}
